#include <cstdio>
#include <cstring>
#include <iostream>
#include <algorithm>
using namespace std;
char s[330];
int main()
{
	while(scanf(" %s",s)!=EOF)
	{
		int A,B,C;
		int flag = 0;
		int len = strlen(s);
		for(int i = 0;i<len;i++)
		{
			if(s[i]=='+') A = i;
			else if(s[i]=='=') B = i-A-1;
		}
		C = len-2-(A+B);
		//printf("%d %d %d\n",A,B,C);
		if(C-1!=A+B+1&&A+B-1!=C+1&&A+B!=C) printf("Impossible\n");
		else 
		{
			//if(A+B==C) puts(s);
			if(A+B<C)
			{
				A = A+1;
				C = C-1;
			}
			else if(A+B>C)
			{
				if(A>1)A = A-1;
				else B = B-1;
				C = C+1;
			}
			for(int i = 0;i<A;i++) printf("|");
			printf("+");
			for(int i = 0;i<B;i++) printf("|");
			printf("=");
			for(int i = 0;i<C;i++) printf("|");
			printf("\n");
		}
	}
} 
